#CMakeLists.txt
#同时编译test_log xlog
#编译成动态库
cmake_minimum_required(VERSION 3.20)
project(xlog)
include_directories("xlog")
add_library(xlog SHARED xlog/xlog.cpp)

#这里xlog可以是源文件
#也可以是通过add_library生成的库文件
add_executable(test_xlog test_xlog/test_xlog.cpp)
target_link_libraries(test_xlog xlog)